package routerGroup

import (
	"coursedesign/projectGo/controller"
	"github.com/gin-gonic/gin"
)

func companyGroup(r *gin.Engine) {
	companyRoutes := r.Group("/company")
	companyController := controller.NewCompanyController()
	companyRoutes.GET("", companyController.PageList)      // 展示公司
	companyRoutes.POST("", companyController.Create)       // 创建公司
	companyRoutes.PUT("/:id", companyController.Update)    // 更新信息
	companyRoutes.DELETE("/:id", companyController.Delete) // 删除信息
}
